package redis

import (
	goRedis "github.com/gomodule/redigo/redis"
)

type key struct {
	connect goRedis.Conn
}

func (k *key) Exists(key string) bool {
	val, _ := k.connect.Do("EXISTS", key)
	defer k.connect.Close()
	if val.(int64) == 0 {
		return false
	} else {
		return true
	}
}
